package com.kehutong.charge.entity;

import com.kehutong.charge.util.enums.EnterpriseTypeEnum;
import com.kehutong.charge.util.enums.ReceiptTypeEnum;
import com.kehutong.common.entity.DataEntity;
import org.coraframework.json.annotation.JSONField;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;

import java.util.List;

/**
 * @program: kht
 * @description: ChargeFapiao
 * @author: joneron
 * @create: 2021/7/12
 **/
@Table(value="t_charge_receipt_fapiao", comment="发票管理表",multi = true, idType = IDType.TIMESTAMP, engine = "innodb")
public class ChargeReceiptFapiao extends DataEntity {

    protected ChargeReceiptFapiao(String id) {
        super(id);
    }

    @Column(comment="发票类型：1电子普通发票，2增值税专用发票")
    private ReceiptTypeEnum receiptType;

    @Column(comment="发票抬头:1企业，2个人")
    private EnterpriseTypeEnum titleType;

    @Column(comment="企业名称")
    private String companyName;

    @Column(comment="企业名称")
    private String companyNo;

    @Column(comment="企业税号")
    private String companyDuty;

    @Column(comment="企业地址")
    private String companyAddress;

    @Column(comment="企业电话")
    private String companyTel;

    @Column(comment="开户银行")
    private String bankType;

    @Column(comment="银行账号")
    private String bankNo;

    @Column(comment="个人姓名")
    private String personalName;

    @Column(comment="收票人手机")
    private String ticketMobile ;

    @Column(comment="收票人邮箱")
    private String ticketEmail;

    @Column(comment="收票人姓名")
    private String ticketRealName ;

    @Column(comment="收票人地址")
    private String ticketAddress ;

    @Column(comment="发票内容：商品明细，商品类型")
    private String receiptDesc;

    @Column(comment = "状态：0禁用，1启用")
    private boolean status;

    @JSONField(serialize = false)
    @Column(comment = "逻辑删除")
    private boolean deleted;

    @Column(comment = "创建人")
    private String createName;

    @Column(comment = "修改人")
    private String updateName;

    public String getCompanyNo() {
        return companyNo;
    }

    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }

    public ReceiptTypeEnum getReceiptType() {
        return receiptType;
    }

    public void setReceiptType(ReceiptTypeEnum receiptType) {
        this.receiptType = receiptType;
    }

    public EnterpriseTypeEnum getTitleType() {
        return titleType;
    }

    public void setTitleType(EnterpriseTypeEnum titleType) {
        this.titleType = titleType;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyDuty() {
        return companyDuty;
    }

    public void setCompanyDuty(String companyDuty) {
        this.companyDuty = companyDuty;
    }

    public String getCompanyAddress() {
        return companyAddress;
    }

    public void setCompanyAddress(String companyAddress) {
        this.companyAddress = companyAddress;
    }

    public String getCompanyTel() {
        return companyTel;
    }

    public void setCompanyTel(String companyTel) {
        this.companyTel = companyTel;
    }

    public String getBankType() {
        return bankType;
    }

    public void setBankType(String bankType) {
        this.bankType = bankType;
    }

    public String getBankNo() {
        return bankNo;
    }

    public void setBankNo(String bankNo) {
        this.bankNo = bankNo;
    }

    public String getPersonalName() {
        return personalName;
    }

    public void setPersonalName(String personalName) {
        this.personalName = personalName;
    }

    public String getTicketMobile() {
        return ticketMobile;
    }

    public void setTicketMobile(String ticketMobile) {
        this.ticketMobile = ticketMobile;
    }

    public String getTicketEmail() {
        return ticketEmail;
    }

    public void setTicketEmail(String ticketEmail) {
        this.ticketEmail = ticketEmail;
    }

    public String getTicketRealName() {
        return ticketRealName;
    }

    public void setTicketRealName(String ticketRealName) {
        this.ticketRealName = ticketRealName;
    }

    public String getTicketAddress() {
        return ticketAddress;
    }

    public void setTicketAddress(String ticketAddress) {
        this.ticketAddress = ticketAddress;
    }

    public String getReceiptDesc() {
        return receiptDesc;
    }

    public void setReceiptDesc(String receiptDesc) {
        this.receiptDesc = receiptDesc;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getUpdateName() {
        return updateName;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }
}
